<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'rmedallero-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'pais_id'); ?>
		<?php echo $form->dropDownList($model,'pais_id', CHtml::listData(Pais::model()->findAll(array('order'=>'pais_nombre')),'pais_id','pais_nombre'),array('prompt'=>'Seleccionar'));?>
		<?php echo $form->error($model,'pais_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'tipo'); ?>
		<?php 
			  echo $form->dropDownList($model,'tipo',array('MEDALLERO'=>'MEDALLERO','5'=>'BALONMANO',
			  '9'=>'ESQUI NAUTICO',
			  '1'=>'FÚTBOL PLAYA',
			  '6'=>'NATACIÓN',
			  '2'=>'RUGBY PLAYA',
			  '3'=>'SURF',
			  '4'=>'TRIATLÓN',
			  '7'=>'VELA',
			  '8'=>'VOLEIBOL PLAYA',
			  ));
		?>
		<?php echo $form->error($model,'tipo'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'orden'); ?>
		<?php echo $form->textField($model,'orden',array('size'=>5,'maxlength'=>5)); ?>
		<?php echo $form->error($model,'orden'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->